<script>
	import store from '@/store/index.js'
	export default {
		onLaunch: function() {
			this.defaultLogin();
		},
		methods: {
			defaultLogin() {
				uni.getStorage({
					key: "token",
					success: async (res) => {
						if (res.data == "" || res.data == undefined || !res.data) return;
						this.$initalToken(res.data);
						store.commit('saveToken', res.data)
					},
				});
				uni.getStorage({
					key: "userInfo",
					success: async (res) => {
						if (res.data == "" || res.data == undefined || !res.data) return;
						store.commit('saveUserInfo', res.data)
					},
				});
			},
		},
	};
</script>
<style lang="scss">
	.clock .uni-collapse-item {
		border: 1px solid #ebeef5;
		border-radius: 4px;
		font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, SimSun, sans-serif;
		box-shadow: rgba(0, 0, 0, 0.08) 0px 0px 3px 1px;
		background-color: #fff;
	}

  @import "@/uni_modules/uview-ui/index.scss";
</style>
